package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 新闻动态对象 applets_public_news
 * 
 * @author cyt
 * @date 2021-09-04
 */
public class AppletsPublicNews implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long newsId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 标题图片 */
    @Excel(name = "标题图片")
    private String titleImg;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private String istop;

    /** 发布者 */
    @Excel(name = "发布者")
    private String releaseUser;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long operator;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setTitleImg(String titleImg) 
    {
        this.titleImg = titleImg;
    }

    public String getTitleImg() 
    {
        return titleImg;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setIstop(String istop) 
    {
        this.istop = istop;
    }

    public String getIstop() 
    {
        return istop;
    }
    public void setReleaseUser(String releaseUser) 
    {
        this.releaseUser = releaseUser;
    }

    public String getReleaseUser() 
    {
        return releaseUser;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setOperator(Long operator) 
    {
        this.operator = operator;
    }

    public Long getOperator() 
    {
        return operator;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("deptId", getDeptId())
            .append("title", getTitle())
            .append("titleImg", getTitleImg())
            .append("content", getContent())
            .append("state", getState())
            .append("istop", getIstop())
            .append("releaseUser", getReleaseUser())
            .append("sort", getSort())
            .append("operator", getOperator())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
